﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Model
{

    [MetadataType(typeof(Template_Metadata))]
    [DisplayName("模板")]
    public partial class Template
    {
        public Template()
        {
            this.Id = Guid.NewGuid();
        }

        public class Template_Metadata
        {
            [ScaffoldColumn(false)]
            public object Id { get; set; }

            [DisplayName("模板名称")]
            [Required]
            public object TemplateName { get; set; }


            [DisplayName("模板类型")]
            [DropDownList("Template_Type", "Id", "Type")]
            public object TypeId { get; set; }
        }
    }
}
